<%-- 
    Document   : w_product
    Created on : Sep 22, 2013, 3:11:55 PM
    Author     : Trang
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="model.Role"%>
<%@page import="model.Staff"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://displaytag.sf.net" prefix="display" %>

<!DOCTYPE html>
<%
    Staff staff = (Staff) session.getAttribute("staff");

    if (staff == null) {
        response.sendRedirect(request.getContextPath() + "/Administration");
    }  else {
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Warehousing Management</title>
        <link href="<%= request.getContextPath()%>/css/style_for_page.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_menu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_addtion.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/adMenu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/tHeaderFooter.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <link rel="stylesheet" href="/resources/demos/style.css" />

                <script>
                    $(function() {
                        $('#start').datepicker();
                        $('#end').datepicker();
                    });
                </script>
    </head>
    <body class="container">
        <% int i = 0;%>
    <header>
        <div class="header"> 
            <%@include file="/include/mHeader.jsp" %>
        </div>
        <div class="adContent">
            <div class="adMenu">
                <%@include file="/include/mMenu.jsp" %>
            </div>
        </div>
    </header>
    <div class="divcontent">
        <div class="headButton">

            <div id="errorMessage">
                <s:form cssStyle="float:left"  action="getrevenue" target="_blank" namespace="/Administration/Revenue" theme="simple">
                    <div id="sl12">
                     <p style="margin-left: -12px;"><b>Get revenue by time:</b><s:select  name="revenue" cssStyle="width: 200px; " list="{'Current Day', 'Current Month', 'Current Year'}" />
                    </p>
                    </div>
                    <div id="sl12">
                        <s:submit  value="Get Revenue"  cssStyle="width: 100px; background-color: gray;" theme="simple" title="Get Report by Time"/> 
                    </div>  
                </s:form>
                <s:form cssStyle="float:left"  action="revenuebetweendate" target="_blank" namespace="/Administration/Revenue" theme="simple">
                <div id="sl12">
                        <p style="margin-left: -12px;"><b><i>From Date: </i></b><s:textfield name="startDate" size="30" id="start" /></p>
                    </div>
                    <div id="sl12">
                        <p><b><i>To: </i></b><s:textfield name="endDate" label="To" size="30"  id="end"/></p>
                    </div>
                    <div id="sl12">
                        <s:submit  value="Get Revenue" cssStyle="width: 100px; background-color: gray;" theme="simple" title="Get report by time range"/> 
                    </div>
                 </s:form>
            </div> 
        </div>
    </div>
    <div class="content">  
    </div>   
</div>
<footer>
    <div id="footer">
        <%@include file="/include/iFooter.jsp" %>
    </div>    
</footer>
</body>
</html>
<%
    }
%>